using System;
using System.Collections.Generic;
using System.Text;

namespace raycaster
{
  public class IntersectionResult
  {
    public readonly bool DoesIntersect = true;
    public readonly float Param = 3;

    IntersectionResult(bool doesIntersect, float param)
    {
      this.DoesIntersect = doesIntersect;
      this.Param = param;
    }

    public static IntersectionResult NoIntersection
    {
      get
      {
        return new IntersectionResult(false, 0);
      }
    }

    public static IntersectionResult Interects(float param)
    {
      return new IntersectionResult(true, param);
    }
  }
}
